<template>
	<div class="new-modal">
		<div class="new-modal-title">
			意向车辆
			<i class="ion-close-round delete" @click="genderDelete()"></i>
		</div>
		<div class="new-modal-section">
			<list>

				<item v-for="(item,index) in params.modelList">
					<div class="screen-section-select s" @click="submitfn(index)" >
						<label :for="item.carId">
							<div class="car-editor-section-item">
								<div class="car-editor-section-img">
									<img :src="imgUrl+item.carImageUrl+'.r_90xh_60'" onerror="javascript:this.src='static/images/default.png';" />
								</div>
								<div class="car-editor-section-txt">
									<h5>{{item.carTitle}}</h5>
									<span style="padding: 0;line-height: 1;border: none;">¥{{item.carRetailPrice}}万</span>
								</div>
							</div>
						</label>
					</div>
				</item>
			</list>
		</div>
	</div>
</template>

<script>
	import { bus } from 'bus.js'
	export default{
		data:function(){
			return {
				gender:999,
				imgUrl:imgUrl,
				genderOptions:[],
				shopId:'',
				title:'车商列表',
				submits:[],
			}
		},
		methods:{
			genderChange(e){
				this.gender = e		
				this.$emit('modalChange',this.genderOptions[this.gender].shopId)

			},
			genderDelete(){
				this.$emit('carCancel')
			},
			submitfn(index){
				
				this.$emit('carCancel',this.params.modelList[index])
			}
		},
		mounted:function(){
			
		},
		computed: {
			// 获取缓存数据
			userSession() {
				return sess.get('userSession')
			}
		},
		created: function(){
		},
		props:[
			'params'
		]
	}
</script>
